﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.PharmacyDomain;
using ShivamEMR.Model.Domain.DoctorsDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PatientDomain
{
   public class Medication
    {
        #region Properties
        public Guid ID { get; set; }
        public DateTime DateAndTime { get; set; }
        public string Reason { get; set; }
        public int ForDays { get; set; }
        public string Direction { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
       [ForeignKey("Drug")]
        public Guid DrugID { get; set; }
       [ForeignKey("Status")]
        public int MedicationStatusID { get; set; }
       [ForeignKey("Patient")]
        public Guid PatientID { get; set; }
       [ForeignKey("Prescriber")]
        public Guid DoctorID { get; set; }
       [ForeignKey("Diagnosis")]
        public Guid DiagnosisID { get; set; } 
        #endregion

        #region NavigationalProperties        
        public virtual Drug Drug { get; set; }
        public virtual MedicationStatus Status { get; set; }
        public virtual Patient Patient { get; set; }
        public virtual Doctor Prescriber { get; set; }
        public virtual Diagnosis Diagnosis { get; set; }
        #endregion


    }
}
